import Vue from 'vue'
import Router from 'vue-router'

//导入刚刚写的组件
import AppIndex from "@/components/home/AppIndex";
import Login from "@/components/Login";

Vue.use(Router)

export default new Router({
    router:[
        //下面是固定写法
        {
            path: '/login',
            name: 'Login',
            component: Login
        },
        {
            path: '/index',
            name: 'AppIndex',
            component: AppIndex
        }
    ]
})